<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div id='resultado_act_1'><s:actionmessage theme="jquery" /> <s:actionerror theme="jquery" /> 
<s:form action="guardar_actividad"
	id="form_crearact" theme="simple">
	<s:set name="n_codigo"><s:property value="cod_prospecto" /></s:set>
	    <s:hidden name='cod_prospecto' value='%{n_codigo}'></s:hidden>
	<table width="100%">
		<tr>
			<td width="10%">Actividad</td>
			<td width="40%"><s:url id="remoteurl" action="cargar_actividades" /> 
		<sj:select href="%{remoteurl}"
				cssClass='caja_3' name="actividad" id="lx1" headerKey="-1"
				listKey='cod'  listValue='descripcion' 
				headerValue="Seleccione la actividad" list="actividades"
				onChangeTopics="reloadsecondlist" /></td>
			<td width="10%">Detalle</td>
			<td width="40%"><s:url id="remoteurl2"
				action="cargar_actividades" /> <sj:select href="%{remoteurl2}"
				listKey='cod'  listValue='descripcion' 
				cssClass='caja_3' name="detalle" id="lx2" headerKey="-1"
				headerValue="Seleccione" list="detalle_act" formIds="form_crearact"
				reloadTopics="reloadsecondlist" /></td>
		</tr>
		<tr>
			<td width="10%">Observaciones</td>
			<td width="90%" colspan='3'><s:textarea name='obs' rows="5"
				cols="50"></s:textarea></td>
		</tr>
		<tr>
			<td colspan='4' align='center'><img id="indicator_prosqqqqwwww"
				src="images/ajax-loader3.gif" alt="Cargando..."
				style="display: none" /> <sj:submit cssClass="boton_sia1"
				targets="resultado_act_1" indicator="indicator_prosqqqqwwww" button="true"
				value="Registrar actividad" theme="simple" /></td>
		</tr>
	</table>
</s:form></div>
</body>
</html>